package com.techstar.api.pojo.public_transport;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.StrDateDeserializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@ToString
@Table(name = "gis_public_transport_road_monitor_devices")
@org.hibernate.annotations.Table(appliesTo = "gis_public_transport_road_monitor_devices", comment="gis 检测点位置信息")
public class RoadMonitorDevices {

    @Id
    @Column(columnDefinition="varchar(100) COMMENT '设备标识'")
    private String device_id;
    @Column(columnDefinition="varchar(100) COMMENT '设备编号'")
    private String device_code;
    @Column(columnDefinition="varchar(100) COMMENT '设备类型'")
    private String device_type;
    @Column(columnDefinition="varchar(100) COMMENT '方向'")
    private String direction;
    @Column(columnDefinition="varchar(100) COMMENT '经纬度'")
    private String local_gps;
    @Column(columnDefinition="varchar(100) COMMENT '所在道路'")
    private String road_name;
    @Column(columnDefinition="varchar(100) COMMENT '更新时间'")
    @JsonDeserialize(using = StrDateDeserializer.class)
    private String update_time;



}
